file(GLOB_RECURSE NEW_SRCS 
    ${APP_MODULE_PATH}/app/common/*.c
)
list(APPEND APP_MODULE_SRCS ${NEW_SRCS})

list(APPEND APP_MODULE_INC
    ${APP_MODULE_PATH}/app/common/
    ${APP_MODULE_PATH}/app/common/assets
)

if (CONFIG_ENABLE_DEMO_HUB_ANIM STREQUAL "y")
    file(GLOB_RECURSE NEW_SRCS 
        ${APP_MODULE_PATH}/app/anim/*.c
    )
    list(APPEND APP_MODULE_SRCS ${NEW_SRCS})

    list(APPEND APP_MODULE_INC
        ${APP_MODULE_PATH}/app/chat_bot/
    )
endif()

if (CONFIG_ENABLE_DEMO_HUB_ANIMINMG STREQUAL "y")
    file(GLOB_RECURSE NEW_SRCS 
        ${APP_MODULE_PATH}/app/animimg/*.c
    )
    list(APPEND APP_MODULE_SRCS ${NEW_SRCS})

    list(APPEND APP_MODULE_INC
        ${APP_MODULE_PATH}/app/animimg/
    )
endif()

if (CONFIG_ENABLE_DEMO_HUB_ARC STREQUAL "y")
    file(GLOB_RECURSE NEW_SRCS 
        ${APP_MODULE_PATH}/app/arc/*.c
    )
    list(APPEND APP_MODULE_SRCS ${NEW_SRCS})

    list(APPEND APP_MODULE_INC
        ${APP_MODULE_PATH}/app/arc/
    )
endif()

if (CONFIG_ENABLE_DEMO_HUB_BAR STREQUAL "y")
    file(GLOB_RECURSE NEW_SRCS 
        ${APP_MODULE_PATH}/app/bar/*.c
    )
    list(APPEND APP_MODULE_SRCS ${NEW_SRCS})

    list(APPEND APP_MODULE_INC
        ${APP_MODULE_PATH}/app/bar/
    )
endif()

if (CONFIG_ENABLE_DEMO_HUB_BENCHMARK STREQUAL "y")
    file(GLOB_RECURSE NEW_SRCS 
        ${APP_MODULE_PATH}/app/benchmark/*.c
        ${APP_MODULE_PATH}/app/benchmark/assets/*.c
    )
    list(APPEND APP_MODULE_SRCS ${NEW_SRCS})

    list(APPEND APP_MODULE_INC
        ${APP_MODULE_PATH}/app/benchmark/
        ${APP_MODULE_PATH}/app/benchmark/assets/
    )
endif()

if (CONFIG_ENABLE_DEMO_HUB_BTN STREQUAL "y")
    file(GLOB_RECURSE NEW_SRCS 
        ${APP_MODULE_PATH}/app/btn/*.c
    )
    list(APPEND APP_MODULE_SRCS ${NEW_SRCS})

    list(APPEND APP_MODULE_INC
        ${APP_MODULE_PATH}/app/btn/
    )
endif()

if (CONFIG_ENABLE_DEMO_HUB_BTNMATRIX STREQUAL "y")
    file(GLOB_RECURSE NEW_SRCS 
        ${APP_MODULE_PATH}/app/btnmatrix/*.c
    )
    list(APPEND APP_MODULE_SRCS ${NEW_SRCS})

    list(APPEND APP_MODULE_INC
        ${APP_MODULE_PATH}/app/btnmatrix/
    )
endif()

if (CONFIG_ENABLE_DEMO_HUB_CALENDAR STREQUAL "y")
    file(GLOB_RECURSE NEW_SRCS 
        ${APP_MODULE_PATH}/app/calendar/*.c
    )
    list(APPEND APP_MODULE_SRCS ${NEW_SRCS})

    list(APPEND APP_MODULE_INC
        ${APP_MODULE_PATH}/app/calendar/
    )
endif()

if (CONFIG_ENABLE_DEMO_HUB_CANVAS STREQUAL "y")
    file(GLOB_RECURSE NEW_SRCS 
        ${APP_MODULE_PATH}/app/canvas/*.c
    )
    list(APPEND APP_MODULE_SRCS ${NEW_SRCS})

    list(APPEND APP_MODULE_INC
        ${APP_MODULE_PATH}/app/canvas/
    )
endif()

if (CONFIG_ENABLE_DEMO_HUB_CHART STREQUAL "y")
    file(GLOB_RECURSE NEW_SRCS 
        ${APP_MODULE_PATH}/app/chart/*.c
    )
    list(APPEND APP_MODULE_SRCS ${NEW_SRCS})

    list(APPEND APP_MODULE_INC
        ${APP_MODULE_PATH}/app/chart/
    )
endif()

if (CONFIG_ENABLE_DEMO_HUB_CHAT_BOT STREQUAL "y")
    file(GLOB_RECURSE NEW_SRCS 
        ${APP_MODULE_PATH}/app/chat_bot/*.c
        ${APP_MODULE_PATH}/logic/chat_bot/*.c
    )
    list(APPEND APP_MODULE_SRCS ${NEW_SRCS})

    list(APPEND APP_MODULE_INC
        ${APP_MODULE_PATH}/app/chat_bot/
        ${APP_MODULE_PATH}/logic/chat_bot/
    )
endif()

if (CONFIG_ENABLE_DEMO_HUB_CHECKBOX STREQUAL "y")
    file(GLOB_RECURSE NEW_SRCS 
        ${APP_MODULE_PATH}/app/checkbox/*.c
    )
    list(APPEND APP_MODULE_SRCS ${NEW_SRCS})

    list(APPEND APP_MODULE_INC
        ${APP_MODULE_PATH}/app/checkbox/
    )
endif()

if (CONFIG_ENABLE_DEMO_HUB_CLEAN_SCREEN STREQUAL "y")
    file(GLOB_RECURSE NEW_SRCS 
        ${APP_MODULE_PATH}/app/clean_screen/*.c
    )
    list(APPEND APP_MODULE_SRCS ${NEW_SRCS})

    list(APPEND APP_MODULE_INC
        ${APP_MODULE_PATH}/app/clean_screen/
    )
endif()

if (CONFIG_ENABLE_DEMO_HUB_COLORWHEEL STREQUAL "y")
    file(GLOB_RECURSE NEW_SRCS 
        ${APP_MODULE_PATH}/app/colorwheel/*.c
    )
    list(APPEND APP_MODULE_SRCS ${NEW_SRCS})

    list(APPEND APP_MODULE_INC
        ${APP_MODULE_PATH}/app/colorwheel/
    )
endif()

if (CONFIG_ENABLE_DEMO_HUB_IMG STREQUAL "y")
    file(GLOB_RECURSE NEW_SRCS 
        ${APP_MODULE_PATH}/app/img/*.c
    )
    list(APPEND APP_MODULE_SRCS ${NEW_SRCS})

    list(APPEND APP_MODULE_INC
        ${APP_MODULE_PATH}/app/img/
    )
endif()

if (CONFIG_ENABLE_DEMO_HUB_IMGBTN STREQUAL "y")
    file(GLOB_RECURSE NEW_SRCS 
        ${APP_MODULE_PATH}/app/imgbtn/*.c
    )
    list(APPEND APP_MODULE_SRCS ${NEW_SRCS})

    list(APPEND APP_MODULE_INC
        ${APP_MODULE_PATH}/app/imgbtn/
    )
endif()

if (CONFIG_ENABLE_DEMO_HUB_KEYBOARD STREQUAL "y")
    file(GLOB_RECURSE NEW_SRCS 
        ${APP_MODULE_PATH}/app/keyboard/*.c
    )
    list(APPEND APP_MODULE_SRCS ${NEW_SRCS})

    list(APPEND APP_MODULE_INC
        ${APP_MODULE_PATH}/app/keyboard/
    )
endif()

if (CONFIG_ENABLE_DEMO_HUB_LED STREQUAL "y")
    file(GLOB_RECURSE NEW_SRCS 
        ${APP_MODULE_PATH}/app/led/*.c
    )
    list(APPEND APP_MODULE_SRCS ${NEW_SRCS})

    list(APPEND APP_MODULE_INC
        ${APP_MODULE_PATH}/app/led/
    )
endif()

if (CONFIG_ENABLE_DEMO_HUB_LABEL STREQUAL "y")
    file(GLOB_RECURSE NEW_SRCS 
        ${APP_MODULE_PATH}/app/label/*.c
    )
    list(APPEND APP_MODULE_SRCS ${NEW_SRCS})

    list(APPEND APP_MODULE_INC
        ${APP_MODULE_PATH}/app/label/
    )
endif()

if (CONFIG_ENABLE_DEMO_HUB_LINE STREQUAL "y")
    file(GLOB_RECURSE NEW_SRCS 
        ${APP_MODULE_PATH}/app/line/*.c
    )
    list(APPEND APP_MODULE_SRCS ${NEW_SRCS})

    list(APPEND APP_MODULE_INC
        ${APP_MODULE_PATH}/app/line/
    )
endif()

if (CONFIG_ENABLE_DEMO_HUB_LIST STREQUAL "y")
    file(GLOB_RECURSE NEW_SRCS 
        ${APP_MODULE_PATH}/app/list/*.c
    )
    list(APPEND APP_MODULE_SRCS ${NEW_SRCS})

    list(APPEND APP_MODULE_INC
        ${APP_MODULE_PATH}/app/list/
    )
endif()

if (CONFIG_ENABLE_DEMO_HUB_HW_GPIO STREQUAL "y")
    file(GLOB_RECURSE NEW_SRCS 
        ${APP_MODULE_PATH}/app/hw_gpio/*.c
    )
    list(APPEND APP_MODULE_SRCS ${NEW_SRCS})

    list(APPEND APP_MODULE_INC
        ${APP_MODULE_PATH}/app/hw_gpio/
    )
endif()

if (CONFIG_ENABLE_DEMO_HUB_HW_AUDIO STREQUAL "y")
    file(GLOB_RECURSE NEW_SRCS 
        ${APP_MODULE_PATH}/app/hw_audio/*.c
    )
    list(APPEND APP_MODULE_SRCS ${NEW_SRCS})

    list(APPEND APP_MODULE_INC
        ${APP_MODULE_PATH}/app/hw_audio/
    )
endif()
